﻿<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ page import="java.util.*" %>
<%@ page import="com.suitsoft.ut.commons.LoginUser" %>
<%@ page import="com.suitsoft.ut.commons.UserHolder" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page import="java.sql.SQLException" %>
<%@ page import="org.springframework.jdbc.core.RowMapper" %>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="org.springframework.jdbc.core.JdbcTemplate" %>
<%@ page import="org.springframework.context.support.FileSystemXmlApplicationContext" %>

<%@ include file="/common/taglibs.jsp"%>
<%
	response.setHeader("Expires", "0");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0029)http://127.0.0.1:8080/hr/tree -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=utf-8>
<META http-equiv=Cache-Control content=no-store>
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Expires content=0>
<LINK href="${ctx }/css/dtree.css" type=text/css rel=StyleSheet>

<SCRIPT src="${ctx }/js/jquery-1.7.2.min.js" type=text/javascript></SCRIPT>

<SCRIPT src="${ctx }/js/dtree_1.js" type=text/javascript></SCRIPT>

<style type="text/css">
<!--
body {
	
        background-color: #40a0d1;
        
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

<META content="MSHTML 6.00.6000.17023" name=GENERATOR>
</HEAD>
<BODY>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="200" valign="top" background="${ctx }/images/left_01.jpg" style="background-repeat:no-repeat; padding:30px;">&nbsp;
  
<SCRIPT type=text/javascript>
d = new dTree('d');
<%
	List listResult = UserHolder.getLoginUser().getTree();
	
	ArrayList listNodeID = (ArrayList) listResult.get(0);
	ArrayList listParentID = (ArrayList) listResult.get(1);
	ArrayList listCaption = (ArrayList) listResult.get(2);
	ArrayList listNodeURL = (ArrayList) listResult.get(3);
	ArrayList listTarget = (ArrayList) listResult.get(4);
	ArrayList listTipInfo = (ArrayList) listResult.get(5);
	for (int iCount = 0; iCount < listNodeID.size(); iCount++) {
%>
		d.add(
    		<%=Integer.parseInt(listNodeID.get(iCount).toString())%>,
    		<%=Integer.parseInt(listParentID.get(iCount).toString())%>,
    		'<%=listCaption.get(iCount).toString().trim()%>',
    		'<%=listNodeURL.get(iCount).toString().trim()%>',
    		'',
    		'<%=listTarget.get(iCount).toString().trim()%>'
       		);        
	<%
		}
	%>
document.write(d)
	
</SCRIPT>
</td>
</tr>
</table>
</BODY>
</HTML>
 